import axios from "axios"
export default class MaterialRefoundModel{
  static refoundModel=null;

  static getInstance(){
    if(this.refoundModel==null){
      this.refoundModel=new MaterialRefoundModel();
    }
    return this.refoundModel;
  }

  getRefound(args){
    return axios.get("http://localhost/MaterialRefoundRecord",{params:args});
  }

  addRefound(refound,details){
    return axios.post("http://localhost/MaterialRefoundRecord",{"refound":refound,"details":details})
  }
}